package org.mparts.client.ui.editor;

import org.mparts.client.activity.Presenter;
import org.mparts.client.ui.editor.PartitemEditor.Driver;
import org.mparts.shared.MpartsRequestFactory;
import org.mparts.shared.proxy.AutoProxy;
import org.mparts.shared.proxy.ModelProxy;
import org.mparts.shared.proxy.PartgroupProxy;
import org.mparts.shared.proxy.PartitemProxy;

import com.google.gwt.editor.client.Editor.Ignore;
import com.sencha.gxt.data.shared.ListStore;
import com.sencha.gxt.widget.core.client.Window;
import com.sencha.gxt.widget.core.client.form.ComboBox;

public interface IPartitemEditorView {
	public interface IPartitemEditorPresenter extends Presenter {
		public void editPartitem( PartitemProxy item );

	}
	
	public void setPresenter(IPartitemEditorPresenter presenter); 
	
	public Window getDialog();
//	public Driver getDriver();
	@Ignore
	public ComboBox<PartgroupProxy> getGrpItem();
	@Ignore
	public ComboBox<AutoProxy> getAutoItem();
	@Ignore
	public ComboBox<ModelProxy> getModelItem();
	public ListStore<PartgroupProxy> getStoreGrp();
	public ListStore<AutoProxy> getStoreAuto();
	public void clearFields();
	
	public Driver initDriver(MpartsRequestFactory rf);
}